//
//  ChangePasswordControl.m
//  FreeTime
//
//  Created by  on 16/8/26.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import "ChangePasswordControl.h"
#import "Header.h"

@interface ChangePasswordControl ()

@end

@implementation ChangePasswordControl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNav];
    [self setupUI];
}
#pragma mark -- selfStyle --
- (void)setupUI{
    self.navigationItem.title = @"修改密码";
    NSArray * arr = @[@"当前密码",@"新密码",@"确认密码"];
    CGFloat y = 0;
    for (int i =0; i<arr.count; i++) {
        UITextField * tf = [[UITextField alloc] initWithFrame:CGRectMake(10, 5+i*44, WindowWidth-20, 44)];
                tf.borderStyle = UITextBorderStyleNone;
        tf.font = FONT(14);
        [ToolUtil createLine:40 superView:tf lift:0 width:WindowWidth-20 hight:1 color:[ImageUtil colorWithRgb:0xcccccc]];
        tf.placeholder = arr[i];
        [self.view addSubview:tf];
        y = CGRectGetMaxY(tf.frame);
    }
    UIButton * enterBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    enterBtn.frame = CGRectMake(60, y+45, WindowWidth-120, 44);
    [enterBtn addTarget:self action:@selector(enterBtn) forControlEvents:UIControlEventTouchUpInside];
    //    enterBtn.backgroundColor = DEBUG_CLOLR;
    
    [enterBtn setBackgroundImage:[UIImage imageNamed:@"querenbiao"] forState:UIControlStateNormal];
    UILabel * titleLbl = [ReduceCode creatLabelWithFrame:CGRectMake((WindowWidth-120-80)/2, 0, 80, 40) title:@"完成" titleColor:[UIColor whiteColor] font:14 textAlignment:1];
    [enterBtn addSubview:titleLbl];
    
    enterBtn.titleLabel.font = FONT(17);
    [self.view addSubview:enterBtn];
    
    
    
}
#pragma mark -- 响应事件 --
- (void)enterBtn{
    
}


@end
